import java.util.ArrayDeque;


public class SeatInOrder implements SeatingStrategy{

	public ArrayDeque<Integer> peopleInLine = new ArrayDeque<Integer>();
	
	@Override
	public int seat() {
		int numberOfPeople;
		numberOfPeople = peopleInLine.remove();
		
		return numberOfPeople;
		
		
	}
	
	public void add(int e)
	{
		peopleInLine.add(e);
	}

	@Override
	public int getSizeOfNextParty() {
		return peopleInLine.peek();
	}
	

}
